﻿/* 窗体动画效果类
 */

/*待测试*/
namespace LSLib.Windows.Forms
{
    using System;

    public class Animat
    {
        /// <summary>窗体加载动画
        /// </summary>
        public static void InitAnimation_Loading(IntPtr hwnd, int duration, API.Window.AnimateWindowFlags flags)
        {
            API.Window.AnimateWindow(hwnd, duration, API.Window.AnimateWindowFlags.AW_ACTIVATE | flags);
        }

        /// <summary>窗体关闭动画
        /// </summary>
        public static void InitAnimation_Closing(IntPtr hwnd, int duration, API.Window.AnimateWindowFlags flags)
        {
            API.Window.AnimateWindow(hwnd, duration, API.Window.AnimateWindowFlags.AW_HIDE | flags);
        }
    }
}
